package com.jxmcloud.business.cut.service.database;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jxmcloud.business.cut.model.database.DBUserTurntableLog;

import java.util.List;

public interface IUserTurntableLogDBService extends IService<DBUserTurntableLog> {

    /**
     * 插入数据
     * @param dbUserTurntableLog
     * @return
     */
    boolean insertData(DBUserTurntableLog dbUserTurntableLog);

    /**
     * 查询最近N条抽奖记录
     * @param uid
     * @param activityId
     * @param n
     * @return
     */
    List<DBUserTurntableLog> selectLastN(Integer uid, Integer activityId, Integer n);

}
